//===============================================================================
// Microsoft patterns & practices
// Guidance Explorer Offline Client
//===============================================================================
// Copyright  Microsoft Corporation.  All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE.
//===============================================================================

using System;
using System.Windows.Forms;
using GuidanceExplorer.Model;

namespace GuidanceExplorer.Controls
{
    /// <summary>
    /// Represent the root node where all the libraries will be shown.
    /// </summary>
    [MenuItemAttribute(500, "context\\New Library", GuidanceExplorer.Commands.NewLibrary, Keys.None)]
    [MenuItemAttribute(510, "context\\Import Library...", GuidanceExplorer.Commands.ImportLibrary, Keys.None)]
    //[MenuItemAttribute(520, "context\\Suscribe to &Library\\From &File...", GuidanceExplorer.Commands.SuscribeLibraryFromFile, Keys.None)]
    //[MenuItemAttribute(530, "context\\Suscribe to &Library\\From &Web...", GuidanceExplorer.Commands.SuscribeLibraryFromWeb, Keys.None)]
    //[MenuItemAttribute(535, "context\\Suscribe to &Library\\From &Rss...", GuidanceExplorer.Commands.SuscribeLibraryFromRss, Keys.None)]
    //[MenuItemAttribute(540, "context\\Save Library as...", GuidanceExplorer.Commands.SaveLibraryAs, Keys.None)]
    [MenuItemAttribute(550, "context\\-", null, Keys.None)]
    [MenuItemAttribute(560, "context\\Synchronize Library", Commands.Synchronize, Keys.None)]
    public class LibrariesNode : TreeNode
    {
        protected string _id = Guid.NewGuid().ToString();

        public String Id
        {
            get
            {
                return _id;
            }
        }
        /// <summary>
        /// Factory.
        /// </summary>
        /// <returns></returns>
        public static LibrariesNode New()
        {
            return new LibrariesNode();
        }

        /// <summary>
        /// Private default constructor.
        /// </summary>
        private LibrariesNode() : base("Libraries",1, 1) { }

    }
}

